<?php
header("content-type:text/html;charset=utf8");
$username = $_POST["username"];
$password = $_POST["password"];

$con = mysqli_connect('127.0.0.1','root','1997','bk2110',3306);

$res = mysqli_query($con,"select * from zhuce where username='$username' and password='$password'");

$row = mysqli_fetch_assoc($res);

if($row){
    echo 1;
}else{
    echo 2;
}